num = 0

for i in range(1,1001):
    num = num + i

print(num)